// 频道请求api接口
import request from '@/utils/request'
/**
 * 获取用户频道，可以不登录
 * @returns Promise
 */
export const getChannelList = () => {
  return request({
    method: 'get',
    url: '/v1_0/user/channels'
  })
}

/**
 * 获取所有的频道
 * @returns
 */
export const getAllChannelList = () => {
  return request({
    method: 'get',
    url: '/v1_0/channels'
  })
}
